package com.paranoidmonkey.ode;

public class Cylinder extends Geom {
	public Cylinder(Space space, float radius, float length){
		handle=AndrODE.dCreateCylinder(space.handle, radius, length);
	}

	public void setParams(float radius, float length){
		AndrODE.dGeomCylinderSetParams(handle, radius, length);
	}

	public float[] getParams(){
		float[] radius=new float[1],length=new float[1];
		AndrODE.dGeomCylinderGetParams(handle, radius, length);
		return new float[]{radius[0],length[0]};
	}

}
